home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: lewkbj@ix.netcom.com(leonel wizel )
- Newsgroups: comp.lang.c++
- Subject: I need help please
- Date: 13 Mar 1996 04:05:34 GMT
- Organization: Netcom
- Message-ID: <4i5hie$c51@cloner3.netcom.com>
- NNTP-Posting-Host: ix-nyc10-10.ix.netcom.com
- X-NETCOM-Date: Tue Mar 12 8:05:34 PM PST 1996
-
-
-
-
- I am new to the c++ programming language. I need some help from
- some of you that are already gurus in this programming language please.
-
-
- I need to write three programs and I don't have any idea how to
- start.
-
-
- the programs are:
-
-
- write a program using palindrome strings:
-
- (1)
- I have to write a recursive function TESTPALINDROME that returns
- "1" if the string stored in the array is palindrome, and "0" otherwise.
-
- I need some hints please.
-
-
- program No. (2)
-
- write a C++ program that inputs a numeric check amount and writes
- the word equivalent of the amount. For example, the amount 112.43
- should be written as
-
- ONE HUNDRED TWELVE AND 43/100
-
- program No. (3)
-
- write a c++ program that creates a class called RATIONAL for
- performing arithmetic with fractions. I have to write a driver to test
- my classes.
-
- I have to provide a constructor function that enables an object of
- this class to be initialized when it is declared. The constructor
- should contain default values in case no initializers are provided and
- should store the fraction in reduced form (i.e., the fraction)
-
- 2/4
-
- should be stored in the object as 1 in the numerator and 2 in the
- denominator). provide public members functions for each of the
- following.
-
- addition, substraction, multiplication, division of two rational
- numbers. result should be stored in reduced form.
-
- and then.
-
- printing rational numbers in the form a/b where a is the numerator
- and b is the denominator.\
-
- printing rational numbers in floating point format.
-
-
- Please I need some help with these three programs. I do not know
- how to start. I need some hints please.
-
-
- thank you for your cooperation
-
-
-